package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * @author Atlakyn
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("d_member")
public class Member extends Model<Member> implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 价格
     */
    private Double price;

    private String startTime;

    private String endTime;

    private String valid;

    @ApiModelProperty("折扣")
    private String discount;

    /**
     * 券类型 id 字符串
     */
    private String coupon;

    private String service;

    @TableField(exist = false)
    private String dueDate;

    /**
     * 图片
     */
    private String image;

    /**
     * 描述
     */
    private String details;

    /**
     * 1启用0禁用
     */
    private Integer enable;

    /**
     * 购买会员卡首/多单优惠的数额
     */
    private BigDecimal discountAmount;

    /**
     * 购买会员卡首/多单优惠的次数
     */
    private Integer discountCount;

    @ApiModelProperty("可否叠加")
    private Boolean overlay;
}
